<%@ taglib uri="/struts-tags" prefix="s"%>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="dist/css/bootstrap.css" rel="stylesheet">
<link href="dist/css/signin.css" rel="stylesheet">
<link rel="shortcut icon" href="images/logo.png">

<link href="dist/css/bootstrap-select.css" rel="stylesheet"
	type="text/css" media="screen">
<link href="dist/css/bootstrap-combined.min.css" rel="stylesheet">
<script src="dist/js/jquery-1.9.1.min.js"></script>
<script src="dist/js/bootstrap.min.js"></script>
<script src="dist/js//bootstrap-select.js"></script>

<script type="text/javascript">
	$(document).ready(function() {
		$('.selectpicker').selectpicker({
			style : 'btn-info',

		});
	});
</script>
<head>
<script type="text/javascript">
	function showDiv(elem) {
		if (elem.value == "admin") {
			document.getElementById('user').value="Administrator";
			document.getElementById('user').disabled = true;
			document.getElementById('pass').focus();
			document.getElementById('pass').select();
		} else {
			document.getElementById('user').disabled = false;
			document.getElementById('user').value="";
			document.getElementById('user').focus();
			document.getElementById('user').select();
		}
	}
	window.history.forward();
    function noBack() { window.history.forward(); }
</script>
<title>Welcome to Maxima IT Consultings</title>
</head>
<body onload="noBack();"  onpageshow="if (event.persisted) noBack();"  onunload="">
	<div class="container">
		<form class="form-signin" action="login.action" method="post"
			name="myForm">
			<h2 class="form-signin-heading">Please sign in</h2>
			<div>
				<select class="selectpicker" id="mySelect" name="usertype"
					onchange="showDiv(this)">
					<option value="admin">Administrator</option>
					<option selected="selected" value="user">User</option>
				</select>
			</div>
			<input type="text" class="form-control" name="username"
				placeholder="User Name" required="required" autofocus id="user">
			<div>
				<br>
			</div>
			<input type="password" class="form-control" name="password"
				required="required" placeholder="Password" id="pass">
			<div>
				<br>
			</div>
			<button class="btn btn-lg btn-primary btn-block" name="submit"
				type="submit" style="height: 40px">Sign in</button>
		</form>
	</div>
	<!-- /container -->
</body>
